//
//  ReadChoiceModel.m
//  项目
//
//  Created by 关雷 on 14-12-31.
//  Copyright (c) 2014年 张诗雨. All rights reserved.
//

#import "ReadChoiceModel.h"

@implementation ReadChoiceModel
- (void)dealloc
{
    [_pic release];
    [_title release];
    [_userinfo release];
    [_content release];
    [_webview_url release];
    [_contentid release];
    [super dealloc];
}
- (instancetype)initWithPic:(NSString *)pic title:(NSString *)title userinfo:(NSDictionary *)userinfo content:(NSString *)content webview:(NSString *)webview_url contentid:(NSString *)contentid
{
    self = [super init];
    if (self) {
        self.userinfo = [NSDictionary dictionaryWithObjectsAndKeys:userinfo, nil];
        self.pic = pic;
        self.title = title;
        self.content = content;
        self.webview_url = webview_url;
        self.contentid = contentid;
    }
    return self;
}

+ (id)ReadChoiceModelWithPic:(NSString *)pic title:(NSString *)title userinfo:(NSDictionary *)userinfo content:(NSString *)content webview:(NSString *)webview_url contentid:(NSString *)contentid
{
    ReadChoiceModel * readC = [[ReadChoiceModel alloc] initWithPic:pic title:title userinfo:userinfo content:content webview:webview_url contentid:contentid];
    return [readC autorelease];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}



@end
